#ifndef __SENSOR_H__
#define __SENSOR_H__

#include "fw/vbb_Utils.h"

typedef struct
{
    VBB_Pin pin_door;
    VBB_Pin pin_engine;
    VBB_Pin pin_ac;
    VBB_Pin pin_pulse;
    
    unsigned int CollectedPulse;
    unsigned int LastCollectedPulse;
    unsigned int LastProcessTime;
    unsigned int Velocity_Int;
    unsigned int Velocity_Fra;
    unsigned int LastVelocity;
    unsigned int KmCount;
    
    unsigned char DoorClosed;
    unsigned char EngineStarted;
    unsigned char ACPowered;
} VBB_Sensor;

void vbb_SENSOR_PulseFire(void);
void vbb_SENSOR_Init(void);
void vbb_SENSOR_Update(void);

#endif
